home *** CD-ROM | disk | FTP | other *** search
/ The Scorpion King Cardz / The Scorpion King Cardz - Disc 1 - Mathays.iso / pc / assets / scorp_postcards.dxr / 00002_loop.ls < prev    next >
Encoding:
Text File  |  2002-03-26  |  1.4 KB  |  46 lines

  1. global oDrawStage, oOrbitCenter, oOrbitNodes, oOrbitButtons, oRollText, oExitButton, oBackButton, oECardsInstr, oECardsPics, gMenuNum, oTextAnim, gPrevMill, pGovTicks, gFPS, oMusicButton, wMusic, gCloseWinFlag, oVolMeter
  2.  
  3. on exitFrame me
  4.   gFPS = float(1000) / float(the milliSeconds - gPrevMill)
  5.   gPrevMill = the milliSeconds
  6.   if gMenuNum = EMPTY then
  7.     repeat with i = 1 to count(oECardsPics)
  8.       moveECardsPics(oECardsPics[i])
  9.     end repeat
  10.     if (oECardsInstr <> EMPTY) and (oECardsInstr <> VOID) then
  11.       moveECardsInstr(oECardsInstr)
  12.     end if
  13.   end if
  14.   repeat with i = 1 to count(oOrbitNodes)
  15.     moveNodes(oOrbitNodes[i])
  16.   end repeat
  17.   if (oOrbitCenter <> EMPTY) and (oOrbitCenter <> VOID) then
  18.     moveOrbitCenter(oOrbitCenter)
  19.   end if
  20.   if (oRollText <> EMPTY) and (oRollText <> VOID) then
  21.     blendRollText(oRollText)
  22.   end if
  23.   if (oBackButton <> EMPTY) and (oBackButton <> VOID) then
  24.     checkBack(oBackButton)
  25.   end if
  26.   if (oExitButton <> EMPTY) and (oExitButton <> VOID) then
  27.     checkExit(oExitButton)
  28.   end if
  29.   repeat with i = 1 to count(oTextAnim)
  30.     animText(oTextAnim[i])
  31.   end repeat
  32.   if (oVolMeter <> EMPTY) and (oVolMeter <> VOID) then
  33.     checkVolMeter(oVolMeter)
  34.   end if
  35.   checkVolMouse()
  36.   if (oDrawStage <> EMPTY) and (oDrawStage <> VOID) then
  37.     oDrawStage.mainLoop()
  38.   end if
  39.   if gCloseWinFlag = 1 then
  40.     setUpAudio()
  41.     oDrawStage.pPunchFlag = 0
  42.     gCloseWinFlag = 0
  43.   end if
  44.   go(the frame)
  45. end
  46.